<!DOCTYPE html>
<html>

	<head>
		<title>搜索 {$theme_vars.varName1|default=''}</title>
		<include file="public@head"/>

	</head>

	<body>
		<div class="pages">
			<include file="public@nav"/>
			<div class="content academic-con">
				<div class="inside-banner news-banner"></div>
				<!--资讯列表-->
				<div class="section">
					<div class="wrapper news-con clearfix">
						<div class="news-box left">


							<!--资讯列表-->
							<div class="main-title" style="margin: 18px">
								<h3>'{$keyword}' 搜索结果 </h3>
							</div>
							<php>
								$where=[
								'post.create_time'=>['egt',0],
								'post.post_title'=>['like',"%$keyword%"]
								];
								$page=[
								'list_rows'=>10,
								'next'=>'下一页',
								'prev'=>'上一页'
								];
							</php>
							<ul class="news-lists">
								<portal:articles item="vo" where="$where" order="post.create_time DESC" page="$page"
									relation="categories" returnVarName="articles_data">
									<li>
										<a class="clearfix" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">
											<notempty name="vo.more.thumbnail">
												<div class="cover-bg" style="background-image: url('{:cmf_get_image_url($vo.more.thumbnail)}')"></div>
											</notempty>
											<div class="news-txt">
												<span class="title">{$vo.post_title}</span>
												<p>{$vo.post_excerpt}</p>
												<span class="date">{:date('Y-m-d',$vo.create_time)}</span>
											</div>
										</a>
									</li>
								</portal:articles>
								<div class="pagination">
									<page/>
								</div>
							</ul>
							<!--资讯列表END-->

							<!--分页-->
							<div class="pages-more">
								<ul class="pagination">
									<page/>
								</ul>
							</div>
							<!--分页END-->
						</div>
						<div class="news-recommend right">
							<div class="news-serach">
								<form action="{:cmf_url('portal/Search/index')}" method="post" class="news-serach-form">
									<input type="text" name="keyword"  value="{:input('param.keyword','')}" placeholder="请输入关键词">
									<button type="submit" class="search-btn"></button>
								</form>
							</div>

							<p class="title">重要公告</p>
							<php>
								$hot_articles=[];
							</php>
							<ul class="recommend-infos">
								<portal:articles limit="5" order="post.post_hits DESC" >

									<php>$top=$key<3?"top3":"";</php>
									<li class="{$top}">
										<a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">
											<i class="sort-num">{$key+1}</i>
											<div class="recommend-txt">
												<h4 class="txt-overflow">{$vo.post_title}</h4>
												<span>2017-12-09</span>
											</div>
										</a>
									</li>
								</portal:articles>
							</ul>
						</div>
					</div>
				</div>

			</div>
		</div>
		<!--主体END-->

		<include file="public@footer"/>

		</div>

		<include file="public@scripts"/>

		<script>
			$(function () {
				var layer=null;
				layui.use('layer', function(){
					layer=layui.layer;
				});

				var $goal=$(".news-recommend"),
					goalH=$goal.offset().top-90;
				$(window).scroll(function () {
					var scrollTop = $(this).scrollTop();
					(scrollTop >= goalH) ? ($goal.addClass('news-recommend-fixed')) : ($goal.removeClass('news-recommend-fixed'));
				});

			});

		</script>
		<hook name="before_body_end"/>

	</body>

</html>